#ifndef MYPLUGIN_H
#define MYPLUGIN_H

#include <QtPlugin>
#include "myinterface.h"

class MyPlugin : public QObject, public MyInterface
{
    Q_OBJECT

#if QT_VERSION >= 0x050000
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "MyPlugin.json")
    Q_INTERFACES(MyInterface)
#endif // QT_VERSION >= 0x050000

public:
    MyPlugin();
    virtual ~MyPlugin();

    int add(int a, int b);
};

#endif // MYPLUGIN_H
